const PENDING = "pending";
const FULFILLED = "fulfilled";
const REJECTED = "rejected";
class PromiseClz {
	constructor(executor) {
		this.status = PENDING;
		this.onFulFilleds = [];
		this.onRejecteds = [];
		this.result = undefined;
		executor((x) => {
			this.result = x;
		}, (reason) => {
			this.result = reason;
		})
	}
}





















































